package com.share.wechat.core.entity;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 推荐首页的实体类
 */
@Entity
@Table(name = "WEB_PRD_GROOM")
public class Groom implements Serializable {
    /**
     * 主键
     */
    @Id
    private String id;
    /**
     * 标题
     */
    private String detailId;
    /**
     * 推荐积分
     */
    private int score;
    /**
     * 创建时间
     */
    private Date createTime;
    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 分类(小分类)
     */
    private int dataSort;


    public Groom() {
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getDetailId() {
        return detailId;
    }

    public void setDetailId(String detailId) {
        this.detailId = detailId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    public int getDataSort() {
        return dataSort;
    }

    public void setDataSort(int dataSort) {
        this.dataSort = dataSort;
    }

    @Override
    public String toString() {
        return "Groom{" +
                "id='" + id + '\'' +
                ", detailId='" + detailId + '\'' +
                ", score=" + score +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                ", dataSort=" + dataSort +
                '}';
    }
}
